package com.liuhui.feige.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.liuhui.feige.mapper.BmsTipMapper;

import com.liuhui.feige.model.entity.BmsTip;
import com.liuhui.feige.service.IBmsTipService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class IBmsTipServiceImpl extends ServiceImpl<BmsTipMapper
        , BmsTip> implements IBmsTipService {

        @Override
        public BmsTip getRandomTip() {
                BmsTip todayTip = null;
                try {
                        todayTip = this.baseMapper.getRandomTip();
                } catch (Exception e) {
                        log.info("tip转化失败");
                }
                return todayTip;
        }
}

